<!-- {if $member_from eq 'seller'}-->
{include file=member.header.html}
<!--{else}-->
{include file=buyer.header.html}
<!--{/if}-->
<!-- 内容 -->
<div class="content f-cb">

  <!-- 当前位置 -->
  {include file=path.html}
  <!-- 内容左边栏 -->
  <!-- {if $member_from eq 'seller'}-->
  {include file=member.menu.html}
  <!--{else}-->
  {include file=member.menu.buyer.html}
  <!--{/if}-->
  <!-- 内容右边栏 -->
  <script>
    $(function(){
      $('#datefrom').datepicker({dateFormat: 'yy-mm-dd',changeMonth: true,changeYear: true});
      $('#dateto').datepicker({dateFormat: 'yy-mm-dd',changeMonth: true,changeYear: true});
    });
    </script>
  <div class="con-shop-r">
    <ul class="receive-t f-cb">
      <li>
        <a href="index.php?app=paycenter&act=my_account&from=buyer&type=1"   <!--{ if $type <> 2}-->class="current" <!--{/if}-->>激活记录</a>
      </li>
      <li>
        <a href="index.php?app=paycenter&act=my_account&from=buyer&type=2" <!--{ if $type==2}-->class="current" <!--{/if}-->>交易记录</a>
      </li>
    </ul>
    <div class="con-tradentes-r">
      <dl class="tradentes-template">
        <dd>
          <div class="tradenotes-title">
            <table width="100%" border="0">
              <tr>
                <td align="left">账户名：{$user.user_name}</td>
                <td align="right">
                  账户金额： <i>{$total_money}</i>
                  元
                </td>
                <td align="right">
                  可用金额： <i>{$usermoney_info.user_money}</i>
                  元
                </td>
                <td align="right">
                  冻结金额：
                  <i>{$usermoney_info.frozen_money}</i>
                  元
                </td>
              </tr>
            </table>
          </div>
          <form action="" method="get" class="">
            <table width="100%">
              <tr>
                <td align="right" width="80">时间范围：</td>
                <td width="235">
                  <div class="valid-d">
                    <input type="text"  class="logistics-t-ib b-radius" id="datefrom" name="btime" value="{$btime}" readonly="readonly" />
                    &nbsp;到&nbsp;
                    <input type="text"  class="logistics-t-ib b-radius" id="dateto" name="etime" value="{$etime}" readonly="readonly"/>
                  </div>
                </td>
                <td align="left" >
                  <div class="more">
                    <a href="index.php?app=paycenter&act=my_account&from={$member_from}&today=1">
                      <!--{ if $today==1}-->
                      <img src="{res file=images/member/today.gif}" alt="今天"/>
                      <!--{else}-->
                      <img src="{res file=images/member/today1.gif}" alt="今天"/>
                      <!--{/if}--> </a>
                    <a href="index.php?app=paycenter&act=my_account&from={$member_from}&month=1">
                      <!--{ if $month==1}--> <font color="#e6445b">最近1个月</font>
                      <!--{else}-->
                      最近1个月
                      <!--{/if}--> </a>
                    <a href="index.php?app=paycenter&act=my_account&from={$member_from}&month=3">
                      <!--{ if $month==3}--> <font color="#e6445b">3个月</font>
                      <!--{else}-->
                      3个月
                      <!--{/if}--> </a>
                    <a href="index.php?app=paycenter&act=my_account&from={$member_from}&month=12">
                      <!--{ if $month==12}-->
                      <font color="#e6445b">1年</font>
                      <!--{else}-->
                      1年
                      <!--{/if}--> </a>
                    <a href="index.php?app=paycenter&act=my_account&from={$member_from}&month=all">
                      <!--{ if $month eq 'all'}-->
                      <font color="#e6445b">全部>></font>
                      <!--{else}-->
                      全部>>
                      <!--{/if}--> </a>
                  </div>
                </td>
              </tr>
              <tr>
                <td align="right" >交易单号：</td>
                <td width="235">
                  <div class="valid-d">
                    <input type="text"  class="tradentes-t-ia b-radius" value="{$order_sn|escape}" name="order_sn"/>
                  </div>
                </td>
                <td align="left" >
                  <div class="valid-d">
                    <input type="submit" class="tradenotes-temp b-radius" value="搜索"  align="texttop"/>
                  </div>
                </td>
              </tr>
            </table>
            <input type="hidden" value="paycenter" name="app">
            <input type="hidden" value="my_account" name="act">
            <input type="hidden" value="{$member_from}" name="from">
            <div class="tradentes-p-d">
              <table width="100%">
                <tr>
                <!--{ if $type==2}-->
                  <th>交易单号</th>
                  <th>交易时间</th>
                  <!--{else}-->
                   <th>卡号</th>
                  <th>激活时间</th>
                  <!--{/if}-->
                  <th>说明</th>
                  <th>收入（元）</th>
                  <th>支出（元）</th>
                  <!--<th>支付方式</th>
                -->
              </tr>

              <!-- 循环开始 -->
              <!--{foreach from=$trans item=order}-->
              <tr>
                <td>{$order.order_no|escape}</td>
                <td>{$order.change_time|date:complete}</td>
                <td>{$order.change_desc}</td>
                <td>
                  <!--{ if $order.change_type eq 0 or $order.change_type eq 3 or $order.change_type eq 4}-->
                  +{$order.user_money}
                  <!--{else}-->
                  <font color="#e6445b">--</font>
                  <!--{/if}--> </td>
                <td>
                  <!--{ if $order.change_type neq 0 and $order.change_type neq 3 and $order.change_type neq 4}-->
                  {$order.user_money}
                  <!--{else}-->
                  <font color="#e6445b">--</font>
                  <!--{/if}--> </td>
                <!--  <td>{$order.trans_payment_name}</td>
              -->
            </tr>
            <!--{foreachelse}-->
            <tr>
              <td colspan="6">{$lang.no_records}</td>
            </tr>
            <!--{/foreach}--> </table>
          <!--{if $trans}-->
          <div class="goods-page">{include file=goods.page.bottom.html}</div>
          <!--{/if}--> </div>
      </form>
    </dd>
  </dl>
</div>
</div>
</div>
<!-- 页脚 -->
{include file=footer.html}